package com.dotflat.fin.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 *  收费计划
 */

@Data
@Entity
@Table(name="fin_pay_config", uniqueConstraints = {
        @UniqueConstraint(columnNames = {
                "areaId"
        })
})
@EqualsAndHashCode(callSuper = true)
public class FinPayConfig extends AreableObjectBase {

    //    基础设置
    @Column(columnDefinition = "VARCHAR(512) COMMENT '默认单据条款'", nullable = false)
    private String defaultPayOrderNote;

    @Column(columnDefinition = "VARCHAR(512) COMMENT '收费单据脚注'", nullable = false)
    private String defaultPayOrderFootnote;

    @Column(columnDefinition = "VARCHAR(128) COMMENT '默认所属学期'", nullable = false)
    private String defaultPayCircleName;

    @Column(columnDefinition = "bit(1) default 1 COMMENT '是否启用园区微信支付'")
    private Boolean wxpayEnabled = false;

    @Column(columnDefinition = "bit(1) default 1 COMMENT '是否启用园区支付宝支付'")
    private Boolean alipayEnabled = false;

}
